package com.everbest.flowable;

public class ResultDesc {

    /**
     * 成功
     */
    public static final int SUCCESS = 100;

    /**
     * 任务完成
     */
    public static final int TASK_FINISH = 200;

    /**
     * 实例删除完成
     */
    public static final int INSTANCE_DELETED = 201;

    /**
     * 流程定义删除完成
     */
    public static final int PROCESSDEFINITION_DELETED = 202;

    /**
     * 流程定义部署完成
     */
    public static final int PROCESSDEFINITION_DEPLOYED = 203;

    /**
     * 流程实例启动完成
     */
    public static final int PROCESSINSTANCE_STARTED = 204;

    /**
     * 任务拾取成功
     */
    public static final int TASK_PICKSUCCESS = 205;

    /**
     * 任务id为空
     */
    public static final int TASKID_NULL = 401;

    /**
     * 流程实例不存在或不是激活状态
     */
    public static final int PROCESSINSTANCE_NONE = 402;

    /**
     * 流程定义的id为空
     */
    public static final int PROCESSDEFINITIONKEY_NULL = 403;

    /**
     * 任务不存在
     */
    public static final int TASK_NONE = 404;

    /**
     * 流程定义不存在
     */
    public static final int PROCESSDEFINITION_NONE = 405;

    /**
     * 任务为空
     */
    public static final int TASK_NULL = 406;

    /**
     * 业务id为空
     */
    public static final int BUSINESSKEY_NULL = 407;

    /**
     * 代理人为空
     */
    public static final int ASSIGNEE_NULL = 408;

    /**
     * 流程实例id为空
     */
    public static final int INSTANCEID_NULL = 409;

    /**
     * 组织机构id为空
     */
    public static final int ORGID_NULL = 409;

    /**
     * 流程定义已经存在
     */
    public static final int PROCESSDEFINITION_EXISTS = 500;

    /**
     * 任务无法拾取
     */
    public static final int TASK_CANNOTPICK = 501;

    /**
     * 上传请求异常
     */
    public static final int UPLOAD_REQUESTERROR = 1001;

    /**
     * 上传文件保存目录创建异常
     */
    public static final int UPLOAD_DIRCREATEERROR = 1002;

    /**
     * 上传文件异常
     */
    public static final int UPLOAD_ERROR = 1003;

    /**
     * 文件大小超限
     */
    public static final int UPLOAD_FILESIZELIMIT = 1004;

    /**
     * 文件总大小超限
     */
    public static final int UPLOAD_SIZELIMIT = 1005;

    /**
     * 上传文件完成
     */
    public static final int UPLOAD_FINISH = 1006;

    /**
     * 失败
     */
    public static final int ERROR = 999;

}
